<?php 
class AddressModel extends Model{
	public $table="address";
	public $validate=array(
//	  array("bname","nonull","品牌名称不能为空",2,1),
	
	);
	
	
	/**
	 * 添加
	 */
	public function adddress(){
		if(!$this->create()) return false;
		$this->data['user_uid']=$_SESSION['uid'];
//		p($this->data);die();
		$this->add();
		return true;
		
	}
	
	/**
	 * 编辑
	 */
	public function edit(){
		if(!$this->create()) return false;
		
//		p($this->data);die();
		$this->update();
		return true;
		
	}
	
}



 ?>